package com.smartao.base.employee;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.smartao.core.orm.Page;
import com.smartao.core.orm.PageRequest;
import com.smartao.core.security.AccountManager;
import com.smartao.core.service.BaseService;

@Transactional(readOnly=true)
public interface EmployeeService extends BaseService<Employee, Long>,AccountManager {

	public List<Employee> findByDepartment(Long id);
	
	public Long countByDepartment(Long id);
	
	public Page<Employee> pageQuery(Employee employee,PageRequest pageRequest);
	
	@Transactional(readOnly=false)
	public void updateAccount(Long employeeId, String account, String password);
	
	public List<Employee> findByIds(Long[] ids);
}
